package com.base.user.service;

import java.util.Map;

import com.base.user.entity.Member;
import com.mysteel.page.Page;

public interface MemberService
{
	/**
	 * 注册
	 * @param member
	 */
	void register(Member member);
	/**
	 * 登录
	 * @param params
	 */
	Map<String, Object> login(Map<String, Object> params);
	/*
	 * 遍历
	 */
	Page<Member> queryMember(Map<String, Object> params, int currentPageNum, int maxPageRowCount);
	/**
	 * 通过ID 删除
	 * @param id
	 */
	void deleteMemberById(long id);
	/**
	 * 更新
	 * @param member
	 */
	void updateMember(Member member);
	/**
	 * 通过多条件查询
	 * @param params
	 * @return
	 */
	Member getMemberByMap(Map<String, Object> params);
	/**
	 * 通过会员ID 查询
	 * @param id
	 * @return
	 */
	Member getMemberById(long id);
	
	/**
	 * 下线
	 * @param memberId
	 */
	void logOut(long memberId);
}
